/**
 * 环境配置文件
 */

const devConf = require('./dev.env');
const productConf = require('./product.env');

let baseConf = {
    // 通用配置
    common: {
        babelInclude: [],
        assetsSubDirectory: 'assets',
        theme: 'default'
    },
    production: {
        NODE_ENV: '"production"',
        // 定义全局变量
        globalVar: {
            'process.env.NODE_ENV': '"development"',
            baseURL: '',
            website: 'http://localhost/wcms/',
            uploadUrl: 'http://localhost/wcms/uploads/'
        }
    },
    dev: {
        NODE_ENV: '"dev"',
        // 定义全局变量
        globalVar: {
            'process.env.NODE_ENV': '"development"',
            baseURL: '',
            website: 'http://localhost/wcms/',
            uploadUrl: 'http://localhost/wcms/uploads/'
        }
    }
};

Object.assign(baseConf.dev, devConf);
Object.assign(baseConf.production, productConf);

module.exports = baseConf;
